package cn.fws.meap.user.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.fws.framework.web.entity.BaseEntity;
import java.util.Date;

/**
 * 消息表 user_msg
 * 
 * @author chenkh
 * @date 2019-03-07
 */
public class Msg extends BaseEntity {

	private static final long serialVersionUID = 1L;
	
	/** 编号 */
	private String id;
	/** 消息内容 */
	private String msgContent;
	/** 消息来源 */
	private String msgSource;
	/** 发送人id */
	private String senderId;
	/** 接收人id */
	private String receiverId;
	/** 发送时间 */
	private Date sendTime;
	/** 是否查看 */
	private String isRead;
	/** 是否展示(早期消息) */
	private String isShow;

	public void setId(String id) {
		this.id = id;
	}

	public String getId() {
		return id;
	}
	public void setMsgContent(String msgContent) {
		this.msgContent = msgContent;
	}

	public String getMsgContent() {
		return msgContent;
	}
	public void setMsgSource(String msgSource) {
		this.msgSource = msgSource;
	}

	public String getMsgSource() {
		return msgSource;
	}
	public void setSenderId(String senderId) {
		this.senderId = senderId;
	}

	public String getSenderId() {
		return senderId;
	}
	public void setReceiverId(String receiverId) {
		this.receiverId = receiverId;
	}

	public String getReceiverId() {
		return receiverId;
	}
	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}

	public Date getSendTime() {
		return sendTime;
	}
	public void setIsRead(String isRead) {
		this.isRead = isRead;
	}

	public String getIsRead() {
		return isRead;
	}
	public void setIsShow(String isShow) {
		this.isShow = isShow;
	}

	public String getIsShow() {
		return isShow;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("msgContent", getMsgContent())
            .append("msgSource", getMsgSource())
            .append("senderId", getSenderId())
            .append("receiverId", getReceiverId())
            .append("sendTime", getSendTime())
            .append("isRead", getIsRead())
            .append("isShow", getIsShow())
            .toString();
    }
}
